package week9;

public class ElectricVehicle extends Vehicle implements IPower{
    public ElectricVehicle(String brand,String color){
        super.setBrand(brand);
        super.setColor(color);

    }
    @Override
    public void run(){
        System.out.println("正在骑"+super.getColor()+"色的"+super.getBrand()+"自行车");
        this.power();
    }
    @Override
    public void power(){
        System.out.println("——电动车通过充电补充动力");
    }
}
